<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Checks if there are results that have not yet been sent from the database</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mongocommandcursor.current.html">« MongoCommandCursor::current</a></li>
      <li style="float: right;"><a href="mongocommandcursor.getreadpreference.html">MongoCommandCursor::getReadPreference »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.mongocommandcursor.html">MongoCommandCursor</a></li>
    <li>Checks if there are results that have not yet been sent from the database</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mongocommandcursor.dead" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoCommandCursor::dead</h1>
  <p class="verinfo">(PECL mongo &gt;=1.5.0)</p><p class="refpurpose"><span class="refname">MongoCommandCursor::dead</span> &mdash; <span class="dc-title">Checks if there are results that have not yet been sent from the database</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongocommandcursor.dead-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>MongoCommandCursor::dead</strong></span>(): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   This method checks whether the <a href="class.mongocommandcursor.html" class="classname">MongoCommandCursor</a>
   cursor has been exhausted and the database has no more results to send to the
   client. A cursor being &quot;dead&quot; does not necessarily mean that there are no
   more results available for iteration.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongocommandcursor.dead-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongocommandcursor.dead-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>true</code></strong> if there are more results that have not yet been sent to the
   client, and <strong><code>false</code></strong> otherwise.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongocommandcursor.dead-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"><span class="methodname"><a href="mongocursorinterface.dead.html" class="methodname" rel="rdfs-seeAlso">MongoCursorInterface::dead()</a> - Checks if there are results that have not yet been sent from the database</span></li>
  </ul>
 </div>

</div></div></div></body></html>